package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.UserWorksCommentReadState;
import com.ecoolex.ying.space.entity.UserWorksCommentReadStateExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface UserWorksCommentReadStateMapper {
    long countByExample(UserWorksCommentReadStateExample example);

    int deleteByExample(UserWorksCommentReadStateExample example);

    int deleteByPrimaryKey(Integer readUserId);

    int insert(UserWorksCommentReadState record);

    int insertSelective(@Param("record") UserWorksCommentReadState record, @Param("selective") UserWorksCommentReadState.Column ... selective);

    UserWorksCommentReadState selectOneByExample(UserWorksCommentReadStateExample example);

    List<UserWorksCommentReadState> selectByExample(UserWorksCommentReadStateExample example);

    UserWorksCommentReadState selectByPrimaryKey(Integer readUserId);

    UserWorksCommentReadState selectByPrimaryKeyWithLogicalDelete(@Param("readUserId") Integer readUserId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") UserWorksCommentReadState record, @Param("example") UserWorksCommentReadStateExample example, @Param("selective") UserWorksCommentReadState.Column ... selective);

    int updateByExample(@Param("record") UserWorksCommentReadState record, @Param("example") UserWorksCommentReadStateExample example);

    int updateByPrimaryKeySelective(@Param("record") UserWorksCommentReadState record, @Param("selective") UserWorksCommentReadState.Column ... selective);

    int updateByPrimaryKey(UserWorksCommentReadState record);

    int batchInsert(@Param("list") List<UserWorksCommentReadState> list);

    int batchInsertSelective(@Param("list") List<UserWorksCommentReadState> list, @Param("selective") UserWorksCommentReadState.Column ... selective);

    int logicalDeleteByExample(@Param("example") UserWorksCommentReadStateExample example);

    int logicalDeleteByPrimaryKey(Integer readUserId);
}